package newhall.util;

public class Cleaner {

    public static void notMain(String[] args) {

   String input = "1.04,1.02,1.0,.97,.95,.93,.92,.92,.91,.91,.9,.9,.89," +
 ".88,.88,.87,.87,.86,.85,.85,.84,.83,.82,.81,.81,.8,.79,.77," +
 ".76,.75,.74,.94,.93,.91,.91,.9,.89,.88,.88,.88,.87,.87,.87," +
 ".86,.86,.85,.85,.85,.84,.84,.84,.83,.83,.83,.82,.82,.81,.81," +
 ".8,.8,.79,.78,1.04,1.03,1.03,1.03,1.03,1.03,1.03,1.03,1.03," +
 "1.03,1.03,1.03,1.03,1.03,1.03,1.03,1.03,1.03,1.03,1.03,1.03," +
 "1.03,1.03,1.02,1.02,1.02,1.02,1.02,1.02,1.02,1.02,1.01,1.02," +
 "1.03,1.04,1.05,1.06,1.06,1.07,1.07,1.07,1.08,1.08,1.08,1.09," +
 "1.09,1.09,1.1,1.1,1.1,1.11,1.11,1.11"+
",1.12,1.12,1.13,1.13,1.13,1.14,1.14,1.14,1.15,1.04,1.06,1.08,1.11,1.13,1.15,1.15,1.16,1.16,1.17,1.18,1.18" +
",1.19,1.19,1.20,1.21,1.21,1.22,1.23,1.23,1.24,1.25,1.26,1.26,1.27,1.28,1.29,1.30,1.31,1.32,1.33,1.01,1.03,1.06" +
",1.08,1.11,1.14,1.15,1.15,1.16,1.16,1.17,1.18,1.19,1.20,1.20,1.21,1.22,1.23,1.24,1.24,1.25,1.26,1.27,1.28,1.29,1.29" +
",1.31,1.32,1.33,1.34,1.36,1.04,1.06,1.08,1.12,1.14,1.17,1.17,1.18,1.18,1.19,1.2,1.2,1.21,1.22,1.22,1.23,1.24" +
",1.25,1.25,1.26,1.27,1.27,1.28,1.29,1.30,1.31,1.32,1.33,1.34,1.35,1.37,1.04,1.05,1.07,1.08,1.11,1.12,1.12,1.13" +
",1.13,1.13,1.14,1.14,1.15,1.15,1.16,1.16,1.16,1.17,1.17,1.18,1.18,1.19,1.19,1.20,1.20,1.21,1.22,1.22,1.23,1.24" +
",1.25,1.01,1.01,1.02,1.02,1.02,1.02,1.02,1.02,1.02,1.03,1.03,1.03,1.03,1.03,1.03,1.03,1.03,1.03,1.04,1.04,1.04" +
",1.04,1.04,1.04,1.04,1.04,1.04,1.04,1.05,1.05,1.06,1.04,1.03,1.02,1.01,1.0,.99,.99,.99,.98,.98,.98,.98,.98,.97,.97,.97" +
",.97,.97,.96,.96,.96,.96,.95,.95,.95,.94,.94,.93,.93,.93,.92,1.01,.99,.98,.95,.93,.91,.91,.90,.90,.90,.89" +
",.89,.88,.88,.87,.86,.86,.85,.84,.84,.83,.82,.82,.81,.80,.79,.79,.78,.77,.76,.76,1.04,1.02,.99,.97,.94,.91,.91,.9,.9" +
",.89,.88,.88,.87,.86,.86,.85,.84,.83,.83,.82,.81,.80,.79,.77,.76,.75,.74,.73,.72,.71,.7";

   input = "1.06,1.08,1.12,1.14,1.17,1.20,1.23,1.27,1.28,1.30,1.32,1.34,1.37,.95,.97,.98,1.0,1.01,1.03,1.04,1.06,1.07,1.08,"+
"1.1,1.11,1.12,1.04,1.05,1.05,1.05,1.05,1.06,1.06,1.07,1.07,1.07,1.07,1.08,1.08,1.0,.99,.98,.97,.96,.95,.94,.93,"+
".92,.92,.91,.9,.89,1.02,1.01,.98,.96,.94,.92,.89,.86,.85,.83,.82,.80,.77,.99,.96,.94,.91,.88,.85,.82,.78,.76,"+
".74,.72,.70,.67,1.02,1.0,.97,.95,.93,.9,.87,.84,.82,.81,.79,.76,.74,1.03,1.01,1.,.99,.98,.96,.94,.92,.92,.91,.9,"+
".89,.88,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,.99,.99,.99,.99,1.05,1.06,1.07,1.08,1.1,1.12,1.13,1.15,1.16,1.17,1.17,1.18,"+
"1.19,1.03,1.05,1.07,1.09,1.11,1.14,1.17,1.20,1.22,1.23,1.25,1.27,1.29,1.06,1.1,1.12,1.15,1.18,1.21,1.25,1.29,"+
"1.31,1.33,1.35,1.37,1.41";

        String[] parts = input.split(",");
        System.out.print("String[][] fs = \n{");
        for(int i = 0; i < 12; i++) {
            System.out.print("{");
            for(int j = 0; j < 13; j++) {
                System.out.print(Double.parseDouble(parts[i*13 + j]) + ", ");
            }
            System.out.println("},");
        }
        System.out.println("};");

        double[][] inz ={
        {1.04, 1.02, 1.0, 0.97, 0.95, 0.93, 0.92, 0.92, 0.91, 0.91, 0.9, 0.9, 0.89, 0.88, 0.88, 0.87, 0.87, 0.86, 0.85, 0.85, 0.84, 0.83, 0.82, 0.81, 0.81, 0.8, 0.79, 0.77, 0.76, 0.75, 0.74},
        {0.94, 0.93, 0.91, 0.91, 0.9, 0.89, 0.88, 0.88, 0.88, 0.87, 0.87, 0.87, 0.86, 0.86, 0.85, 0.85, 0.85, 0.84, 0.84, 0.84, 0.83, 0.83, 0.83, 0.82, 0.82, 0.81, 0.81, 0.8, 0.8, 0.79, 0.78},
        {1.04, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02},
        {1.01, 1.02, 1.03, 1.04, 1.05, 1.06, 1.06, 1.07, 1.07, 1.07, 1.08, 1.08, 1.08, 1.09, 1.09, 1.09, 1.1, 1.1, 1.1, 1.11, 1.11, 1.11, 1.12, 1.12, 1.13, 1.13, 1.13, 1.14, 1.14, 1.14, 1.15},
        {1.04, 1.06, 1.08, 1.11, 1.13, 1.15, 1.15, 1.16, 1.16, 1.17, 1.18, 1.18, 1.19, 1.19, 1.2, 1.21, 1.21, 1.22, 1.23, 1.23, 1.24, 1.25, 1.26, 1.26, 1.27, 1.28, 1.29, 1.3, 1.31, 1.32, 1.33},
        {1.01, 1.03, 1.06, 1.08, 1.11, 1.14, 1.15, 1.15, 1.16, 1.16, 1.17, 1.18, 1.19, 1.2, 1.2, 1.21, 1.22, 1.23, 1.24, 1.24, 1.25, 1.26, 1.27, 1.28, 1.29, 1.29, 1.31, 1.32, 1.33, 1.34, 1.36},
        {1.04, 1.06, 1.08, 1.12, 1.14, 1.17, 1.17, 1.18, 1.18, 1.19, 1.2, 1.2, 1.21, 1.22, 1.22, 1.23, 1.24, 1.25, 1.25, 1.26, 1.27, 1.27, 1.28, 1.29, 1.3, 1.31, 1.32, 1.33, 1.34, 1.35, 1.37},
        {1.04, 1.05, 1.07, 1.08, 1.11, 1.12, 1.12, 1.13, 1.13, 1.13, 1.14, 1.14, 1.15, 1.15, 1.16, 1.16, 1.16, 1.17, 1.17, 1.18, 1.18, 1.19, 1.19, 1.2, 1.2, 1.21, 1.22, 1.22, 1.23, 1.24, 1.25},
        {1.01, 1.01, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.02, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.03, 1.04, 1.04, 1.04, 1.04, 1.04, 1.04, 1.04, 1.04, 1.04, 1.04, 1.05, 1.05, 1.06},
        {1.04, 1.03, 1.02, 1.01, 1.0, 0.99, 0.99, 0.99, 0.98, 0.98, 0.98, 0.98, 0.98, 0.97, 0.97, 0.97, 0.97, 0.97, 0.96, 0.96, 0.96, 0.96, 0.95, 0.95, 0.95, 0.94, 0.94, 0.93, 0.93, 0.93, 0.92},
        {1.01, 0.99, 0.98, 0.95, 0.93, 0.91, 0.91, 0.9, 0.9, 0.9, 0.89, 0.89, 0.88, 0.88, 0.87, 0.86, 0.86, 0.85, 0.84, 0.84, 0.83, 0.82, 0.82, 0.81, 0.8, 0.79, 0.79, 0.78, 0.77, 0.76, 0.76},
        {1.04, 1.02, 0.99, 0.97, 0.94, 0.91, 0.91, 0.9, 0.9, 0.89, 0.88, 0.88, 0.87, 0.86, 0.86, 0.85, 0.84, 0.83, 0.83, 0.82, 0.81, 0.8, 0.79, 0.77, 0.76, 0.75, 0.74, 0.73, 0.72, 0.71, 0.7}};


        System.out.println(2E-2);
    }

}
